package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.GroupInfo;

public interface GroupService {

	public abstract GroupInfo getGroupInfoById(Long id);

	public abstract int getGroupInfoCountByCriteria(DetachedCriteria query);

	public abstract List<GroupInfo> getGroupInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createGroupCode();

	public abstract void saveGroupInfo(GroupInfo groupInfo,Long departId);

	public abstract void updateGroupInfo(GroupInfo groupInfo,Long departId);

	public abstract void removeGroupInfo(Long id);

	public abstract List<GroupInfo> getGroupInfos();
	
	public abstract List<GroupInfo> getGroupInfos(DetachedCriteria query);

}
